package com.wlzg.collectiontool.model.bean

import androidx.room.Entity
import androidx.room.Ignore
import androidx.room.PrimaryKey
import com.google.gson.annotations.SerializedName
import com.wlzg.collectiontool.util.DateUtil

@Entity(tableName = "psGongcheng")
class PsGongcheng {
    @PrimaryKey(autoGenerate = true)
    var gcId: Long? = null
    var xiangmuId:Long?=null

    @SerializedName("apparatus")
    var apparatus: String? = null

    @SerializedName("bzren")
    var bzren: String? = null

    @SerializedName("center_point")
    var centerPoint: String? = null

    @SerializedName("createBy")
    var createBy: String? = null

    @SerializedName("createTime")
    var createTime: String? = null

    @SerializedName("detectionEnd")
    var detectionEnd: String? = null

    @SerializedName("detectionStart")
    var detectionStart: String? = null

    @SerializedName("gcAddress")
    var gcAddress: String? = null

    @SerializedName("gcCategory")
    var gcCategory: String? = null

    @SerializedName("gcJldw")
    var gcJldw: String? = null

    @SerializedName("gcName")
    var gcName: String? = null

    @SerializedName("gcSgdw")
    var gcSgdw: String? = null

    @SerializedName("gcStatus")
    var gcStatus: String? = null

    @SerializedName("id")
    var id: String? = null

    @SerializedName("jianceren")
    var jianceren: String? = null

    @SerializedName("pipelocationPic")
    var pipelocationPic: String? = null

    @SerializedName("proId")
    var proId: String? = null

    @SerializedName("remark")
    var remark: String? = null

    @SerializedName("reportgoal")
    var reportgoal: String? = null

    @SerializedName("sketchPic")
    var sketchPic: String? = null

    @SerializedName("sysOrgCode")
    var sysOrgCode: String? = null

    @SerializedName("tenantId")
    var tenantId: Int? = null

    @SerializedName("updateBy")
    var updateBy: String? = null

    @SerializedName("updateTime")
    var updateTime: String? = null

    @SerializedName("workprocessPic")
    var workprocessPic: String? = null

    @SerializedName("zoom")
    var zoom: String? = null

    var ssdlId:Long=0
    var ssxmId:Long=0
    var ssxmName:String?=""
    var teamleader:String=""
    var x1Coor:Double?=0.0
    var y1Coor:Double?=0.0
    var tbStatus:Int=0
    var totalWork:Int=0
    var roadName = ""
    var actualStartime:String?=""
    var actualEndtime:String=""
    @SerializedName("districtId")
    var districtId: String? = null

    @SerializedName("districtName")
    var districtName: String? = null
    @Ignore
    var ifchecked:Int=0

    init {
        createTime= DateUtil.getCurData()
    }
    override fun toString(): String {
        return gcName.toString()
    }
    override fun equals(other: Any?): Boolean {
        if(other is PsGongcheng){
            if (this.gcId==other.gcId){
                return true
            }
        }
        return false
    }

}